﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    
    class Materials
    {
        public string material;
        public float price;
        public float target;
        public float holdingcost;
        public float backordercost;

        public Dictionary<string, Machine> machines= new Dictionary<string, Machine>();
        //demand key = epoch
        public SortedDictionary<int, float> demand = new SortedDictionary<int, float>();



        public Materials(string material, float price, float target, float holdingcost, float backordercost)
        {
            this.material = material;
            this.price = price;
            this.target = target;
            this.holdingcost = holdingcost;
            this.backordercost = backordercost;

        }

        public String describeYourself()
        {
            String output = "I am MATERIAL :" + material+"\n";
            output += ", price: " + price + ",target :"+target;
            output += ", holdingcost:" + holdingcost + ", backordercost:" + backordercost;
            
            return output;
        }
    }
}
